<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="layout :: htmlhead" th:with="title='board管理'"></head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头-->
    <div th:replace="fragments/head :: header"></div>

    <div class="layui-body" style="margin: 1%">

        <form id="boardSearch" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 20px;">
            <div class="layui-form-item">

                <label class="layui-form-label">留言状态</label>
                <div class="layui-input-inline">
                    <select name="boardStatus"  id="boardStatus" >
                        <option value="" >请选择...</option>
                        <!--<option value="0" >未读</option>
                        <option value="1">已读</option>-->
                    </select>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">

                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <button class="layui-btn"  lay-submit="" lay-filter="searchSubmit">提交</button>
                </div>
            </div>
        </form>

        <!--<hr class="layui-bg-blue"/>-->
        <hr class="layui-bg-black"/>


        <table id="boardList" lay-filter="boardTable"></table>

        <script type="text/html" id="optBar">
            <a class="layui-btn layui-btn-xs" lay-event="edit">回复</a>
            {{#  if(d.boardStatus == '1'){ }}
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="recover">已读</a>
            {{#  } else { }}
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">未读</a>
            {{#  } }}
        </script>


       <!-- <br/><br/>
        <hr class="layui-bg-black"/>
        <legend>用户发布</legend>	<br/><br/>
        <table id="talkList" lay-filter="talkTable"></table>

        <script type="text/html" id="optBar0">
            <a class="layui-btn layui-btn-xs" lay-event="seeTalk">查看</a>
            {{#  if(d.houtaiStatus == '1'){ }}
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="">占位</a>
            {{#  } else { }}
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="deleteTalk">删除</a>
            {{#  } }}
        </script>-->


    </div>




    <!--添加或编辑用户-->
    <div id="setBoard" class="layer_self_wrap" style="width:500px;display:none;">
        <form id="boardForm" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 20px;">
            <input id="pageNum" type="hidden" name="pageNum"/>
            <input id="boardId" type="hidden" name="boardId"/>
            <div class="layui-form-item">
                <label class="layui-form-label">用户名</label>
                <div class="layui-input-inline">
                    <input id="userNickname" name="userNickname" readonly="readonly" lay-verify="required" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">留言</label>
                <div class="layui-input-inline">
                    <input id="userMessages" name="userMessages" readonly="readonly" lay-verify="required" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">答复</label>
                <div class="layui-input-inline">
                    <input id="reply" name="reply"  lay-verify="required" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 10px;">
                    <button class="layui-btn"  lay-submit="" lay-filter="boardSubmit">提交</button>

                </div>
            </div>
        </form>
    </div>

    <!--底部-->
    <div th:replace="fragments/footer :: footer"></div>

    <script src="/js/board/boardList.js"></script>

</div>
</body>
</html>